<?php
/**
 * Defines a town related to a province that can contain districts
 */
class Town{
	
	private $id;
	private $province;
	private $name;
	private $normalizedName;
	private $districtTotal;
	private $itemTotal;	
	
	public function __construct(	$id = NULL, 
													$province = NULL, 
													$name = NULL, 
													$normalizedName = NULL, 
													$districtTotal = NULL, 
													$itemTotal = NULL){
		$this->id = $id;
		$this->province = $province;
		$this->name = $name;
		$this->normalizedName = $normalizedName;
		$this->districtTotal = $districtTotal;
		$this->itemTotal = $itemTotal;													
	}
	
	public function setId($id){
		$this->id = $id;
	}
	
	public function setProvince($province){
		$this->province = $province;
	}
	
	public function setName($name){
		$this->name = $name;
	}
	
	public function setNormalizedName($normalizedName){
		$this->normalizedName = $normalizedName;
	}
	
	public function setDistrictTotal($districtTotal){
		$this->districtTotal = $districtTotal;
	}
	
	public function setItemTotal($itemTotal){
		$this->itemTotal = $itemTotal;
	}
	
	public function getId(){
		$this->id;
	}
	
	public function getProvince(){
		return $this->province;
	}
	
	public function getName(){
		return $this->name;
	}
	
	public function getNormalizedName(){
		return $this->normalizedName;
	}
	
	public function districtTotal(){
		return $this->districtTotal;
	}
	
	public function itemTotal(){
		return $this->itemTotal;
	}
}
?>